package rest.zb.rest.api;

import java.util.List;

import entity.enumtype.KTimeEnum;
import entity.exchange.KlineResult;
import rest.zb.config.ConfigChbtc;

public abstract class BaseChbtcApi {
	public static void main(String[] args) throws InterruptedException {
		while(true){
			List<KlineResult> kline = ConfigChbtc.apiGet.getKline(KTimeEnum.min1);
			System.out.println(kline.get(kline.size() -1).getClose());
			System.out.println(ConfigChbtc.apiGet.getTicker().getTicker().getLast());
			System.out.println("------------");
			Thread.sleep(1000);
		}
		
	}
}
